package main.tileMap;


import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;



public class Background extends Rectangle{
	

	private static final long serialVersionUID = 1L;
	public int[] id = {-1,-1};
	
	public Background(Rectangle rect, int id[]){
		setBounds(rect);
		this.id = id;
	}
	
	public void render(Graphics2D g){
		g.drawImage(Tile.backgroundDespacho, x, y,x + width,y +height, id[0]*Tile.size, id[1]*Tile.size, id[0]*Tile.size + Tile.size, id[1]*Tile.size + Tile.size, null);
	}
	
}